package net.xiaoyu233.mitemod.miteite.gui;

import net.minecraft.*;
import net.xiaoyu233.mitemod.miteite.inventory.container.ContainerMinePocket;
import org.lwjgl.opengl.GL11;

public class GuiMinePocketInventory extends awy {

    private static final bjo hopperGuiTextures = new bjo("textures/gui/container/hopper.png");
    private final IInventory playerInventory;
    private final IInventory pocketInventory;

    public GuiMinePocketInventory(EntityPlayer player, IInventory minePocketInventory) {
        super(new ContainerMinePocket(player, minePocketInventory));
        this.playerInventory = player.inventory;
        this.pocketInventory = minePocketInventory;
//        this.allowUserInput = false;
        this.d = 133;
    }

    public void b(int par1, int par2) {
        String var3 = this.pocketInventory.hasCustomName() ? this.pocketInventory.getCustomNameOrUnlocalized() : bkb.a(this.pocketInventory.getCustomNameOrUnlocalized());
        this.o.b(var3, this.c / 2 - this.o.a(var3) / 2, 6, 4210752);
        this.o.b(this.playerInventory.hasCustomName() ? this.playerInventory.getCustomNameOrUnlocalized() : bkb.a(this.playerInventory.getCustomNameOrUnlocalized()) , 7, this.d - 96 + 3, 0x282828);
    }
    @Override
    protected void a(float v, int i, int i1) {
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        this.f.J().a(hopperGuiTextures);
        int var4 = (this.g - this.c) / 2;
        int var5 = (this.h - this.d) / 2;
        this.b(var4, var5, 0, 0, this.c, this.d);
    }
}
